package com.example.blog.mapper;

import com.example.blog.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User selectUser(@Param("username") String username,@Param("password") String password);
    User selectByUserId(@Param("userid") Integer userid);
    User selectByUserName(@Param("username") String username);
    void addUser(String username,String password);
    void upUser(String username,String password);
    int getBlogNum(@Param("userid") Integer userid);
}
